package pcjavanet.mobilesell.model;

import java.util.Date;

 import pcjavanet.mobilesell.model.Shop;

 import pcjavanet.mobilesell.model.Color;

 import pcjavanet.mobilesell.model.Configuration;

 import pcjavanet.mobilesell.model.Unit;

public class Purchase {
    private Integer dbid;

    private String name;

    private Integer refShopDbidshopDbid;

    private Integer refColorDbid;

    private Integer refConfigurationDbid;

    private Integer refUnitDbid;

    private Integer plannumber;

    private Integer realnumber;

    private Double planunitprice;

    private Double planmoney;

    private Double realunitprice;

    private String memo;

    private Date createDate;

    private Shop shop = null;
    private Color color = null;
    private Configuration configuration = null;
    private Unit unit = null;
    public void setShop( Shop shop ){
        this.shop=shop;
    }
    public Shop getShop( ){
    	return this.shop;
    }
    public void setColor( Color color ){
        this.color=color;
    }
    public Color getColor( ){
    	return this.color;
    }
    public void setConfiguration( Configuration configuration ){
        this.configuration=configuration;
    }
    public Configuration getConfiguration( ){
    	return this.configuration;
    }
    public void setUnit( Unit unit ){
        this.unit=unit;
    }
    public Unit getUnit( ){
    	return this.unit;
    }
    public Integer getDbid() {
        return dbid;
    }

    public void setDbid(Integer dbid) {
        this.dbid = dbid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getRefShopDbidshopDbid() {
        return refShopDbidshopDbid;
    }

    public void setRefShopDbidshopDbid(Integer refShopDbidshopDbid) {
        this.refShopDbidshopDbid = refShopDbidshopDbid;
    }

    public Integer getRefColorDbid() {
        return refColorDbid;
    }

    public void setRefColorDbid(Integer refColorDbid) {
        this.refColorDbid = refColorDbid;
    }

    public Integer getRefConfigurationDbid() {
        return refConfigurationDbid;
    }

    public void setRefConfigurationDbid(Integer refConfigurationDbid) {
        this.refConfigurationDbid = refConfigurationDbid;
    }

    public Integer getRefUnitDbid() {
        return refUnitDbid;
    }

    public void setRefUnitDbid(Integer refUnitDbid) {
        this.refUnitDbid = refUnitDbid;
    }

    public Integer getPlannumber() {
        return plannumber;
    }

    public void setPlannumber(Integer plannumber) {
        this.plannumber = plannumber;
    }

    public Integer getRealnumber() {
        return realnumber;
    }

    public void setRealnumber(Integer realnumber) {
        this.realnumber = realnumber;
    }

    public Double getPlanunitprice() {
        return planunitprice;
    }

    public void setPlanunitprice(Double planunitprice) {
        this.planunitprice = planunitprice;
    }

    public Double getPlanmoney() {
        return planmoney;
    }

    public void setPlanmoney(Double planmoney) {
        this.planmoney = planmoney;
    }

    public Double getRealunitprice() {
        return realunitprice;
    }

    public void setRealunitprice(Double realunitprice) {
        this.realunitprice = realunitprice;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
